package com.indCfeng.minio;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Cfeng
 * @date 2022/8/11
 * starter自动配置的： 用户需要配置用户名rootUser【accessKey】，rootPassword【secretKey】，密码，endpoint和bucket
 */

@ConfigurationProperties("spring.minio")
public class MinioConfigurationProperties {

    private String endpoint;

    private String accessKey;

    private String secretKey;

    private String bucket;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }
}
